package main

import "fmt"

func Closure1(name string) func() string {
	return func() string {
		return "hello" + name
	}

}
func Closure2() func() string {
	name := "daming"
	age := 14
	return func() string {
		return fmt.Sprintf("hello,%s,%d", name, age)
	}
}
func Closure3() func() int {
	var age = 0
	return func() int {
		age++
		return age
	}
}
